function indexLazyload(a) {
	a.lazyload({
		effect: "fadeIn"
	});
}

//部分区域图片延迟加载
function lazyloadForPart(container) {
	container.find('img').each(function () {
		var original = $(this).attr("original");
		if (original) {
			$(this).attr('src', original).removeAttr('original');
		}
	});
}

//tab 导航
$(document).ready(function () {
	//图片懒加载
	indexLazyload($(".imgBox img[data-original],.mainUse img[data-original]"));
});
function setContentTab(name, curr, n) {
	for (i = 1; i <= n; i++) {
		var menu = document.getElementById(name + i);
		var cont = document.getElementById("con_" + name + "_" + i);
		menu.className = i == curr ? "current" : "";
		if (i == curr) {
			cont.style.display = "block";
			lazyloadForPart($(cont));
		} else {
			cont.style.display = "none";
		}
	}
}